﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Master/Master.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register TagName="RoleInput" TagPrefix="Control" Src="~/Views/Master/RoleInput.ascx" %>
<asp:Content ID="rolePositionTitle" ContentPlaceHolderID="TitleContent" runat="server">
    权限与职位
</asp:Content>
<asp:Content ID="rolePositionList" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../../Content/Control/splitter.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/Master/RolePositionList.js" type="text/javascript"></script>
    <script src="../../Scripts/Control/CmnSplitter.js" type="text/javascript"></script>
    <div id="MySplitter">
    </div>
    <div id="btn_div">
        <div id="role_btn" style="margin-top: 16px; margin-left: 16px; float: left;">
            <img src="../../Content/images/button/btn_new.png" id="role_btnAdd" style="cursor: pointer" />
            <img src="../../Content/images/button/btn_update.png" id="role_btnUpdate" style="cursor: pointer" />
            <img src="../../Content/images/button/btn_delete.png" id="role_btnDelete" style="cursor: pointer" />
        </div>
        <div id="position_btn" style="margin-top: 16px; margin-right: 16px; float: right;">
            <table class="datatable" cellpadding="0" cellspacing="0">
                <tr>
                    <th width="15%">
                        职位名称
                    </th>
                    <td>
                        <input type="text" id="position_name" style="width: 120px;" searchmode />
                    </td>
                    <td rowspan="2">
                        <img src="../../Content/images/button/btn_search.png" id="position_btnSearch" style="cursor: pointer" />
                        <img src="../../Content/images/button/btn_search_clear.png" id="position_btnClear"
                            style="cursor: pointer" />
                        <img src="../../Content/images/button/btn_new.png" id="position_btnAdd" style="cursor: pointer" />
                        <img src="../../Content/images/button/btn_delete.png" id="position_btnDelete" style="cursor: pointer" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div id="role_div">
        <div id="roleList">
        </div>
    </div>
    <div id="positionListByRoleId">
    </div>
    <Control:RoleInput ID="RoleInputCtl" runat="server" />
    <script type="text/javascript">
        var rolePositionListIns = new RolePositionList();

        rolePositionListIns.roleInputIns  =<%=RoleInputCtl.GetJSInstance() %>;

        $j(function () {
            rolePositionListIns.init();
        });
    </script>
</asp:Content>
